export class Point{
    x=0;
    y=0;
    constructor(x,y){
        this.x=x;
        this.y=y;

    }
    get_distance(other){
        return Math.sqrt(Math.pow((this.x - other.x),2)+Math.pow((this.y - other.y),2))
    }
}


// let point1 = new point(0,0)
// console.log(point1);
// let p2 = new point(1,1)
// console.log(p2);
// let distance = p2.get_distance(point1)
// console.log(distance);

